package com.yueyang.sojourn.server.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单vo
 * @author andy.yang
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-03-17 10:45
 */
@Data
@ToString
@ApiModel("订单信息")
public class SojournOrderDto {

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id", required = true)
    @Valid
    @NotNull(message = "不能为空")
    private Long merchId;

    /**商品优惠 策略**/
    @ApiModelProperty(value = "商品优惠", required = false)
    private String merchSale;

    /**商品数量**/
    @ApiModelProperty(value = "商品id", required = true)
    @Valid
    @NotNull(message = "不能为空")
    private Integer merchCount;

    /**订单类型：普通商品、会员**/
    @ApiModelProperty(value = "订单类型", required = true)
    @Valid
    @NotNull(message = "不能为空")
    private Integer type;

    /**订单联系人**/
    @ApiModelProperty(value = "联系人姓名", required = true)
    @Valid
    @NotNull
    private String contactName;

    /**订单联系人手机号**/
    @ApiModelProperty(value = "联系人手机", required = true)
    @Valid
    @NotNull
    private String contactMobile;

    @ApiModelProperty(value = "已阅读合同", required = true)
    @Valid
    @NotNull
    private Boolean knowContract;

    @ApiModelProperty(value = "游客id列表", required = true)
    @Valid
    @NotNull
    private List<Long> touristIds;

}
